package com.itheima.mybatisplus01.sexEnum;

import com.baomidou.mybatisplus.annotation.IEnum;

public enum Sex implements IEnum<Integer> {
    MAN("男",1),
    WOMAN("女",0);

    private Integer value;
    private String desc;
    private Sex(String desc,Integer value) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String toString() {
        return desc;
    }
}
